package com.xxkk.spring_boot_web.sql.impl;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SqlService {

    private final Logger logger = Logger.getLogger(SqlService.class);

    public void initSqlConfig() {
//        JSONObject jo = new JSONObject();//this.getAllConfigValue();
//        config.currencyType = jo.getString("GaNoPay_recharge_currentType");
//        config.merchantNo = jo.getString("GaNoPay_merchantNo");
//        config.bizCode = jo.getString("GaNoPay_recharge_bizCode");
//        config.mchtCallbackUrl = jo.getString("GaNoPay_recharge_mchtCallbackUrl");
//        config.mchtNotifyUrl = jo.getString("GaNoPay_recharge_mchtNotifyUrl") + "/PayWeb/p/order_cb";
//        config.mchtEmail = jo.getString("GaNoPay_mchtEmail");
//        config.mchtIp = jo.getString("GaNoPay_mchtIp");
//        config.paykey = jo.getString("GaNoPay_recharge_payKey");
//        config.payOrderReqUrl = jo.getString("GaNoPay_recharge_payOrderReqUrl");
//        config.java_game_server_address = jo.getString("java_game_server_address");
//        config.pay_and_java_server_rsa_private_key = jo.getString("pay_and_java_server_rsa_private_key");
//        config.TopPay_recharge_notifyUrl = jo.getString("TopPay_recharge_notifyUrl") + "/PayWeb/TP/TPFiatPayCallBack";
//        config.TopPay_MCH_ID = jo.getString("TopPay_merchantCode");
//        config.TopPay_recharge_redirectUrl = jo.getString("TopPay_recharge_redirectUrl");
//        config.pay_and_java_server_rsa_public_key = jo.getString("pay_and_java_server_rsa_public_key");
//        config.recharge_money_gameCoin_rate = Float.parseFloat(jo.getString("recharge_money_gameCoin_rate"));
//        config.TopPay_platform_publicKey = jo.getString("TopPay_platform_publicKey");
//        config.TopPay_mch_privateKey = jo.getString("TopPay_mch_privateKey");
    }



}
